package com.css.zfzx.sjcj.modules.statistics.fxCasualtyEvaluationMap.service.impl;

import com.css.zfzx.sjcj.common.vo.DivisionVo;
import com.css.zfzx.sjcj.modules.statistics.fxCasualtyEvaluationMap.repository.FxCasualtyEvaluationMapRepository;
import com.css.zfzx.sjcj.modules.statistics.fxCasualtyEvaluationMap.repository.entity.FxCasualtyEvaluationMapEntity;
import com.css.zfzx.sjcj.modules.statistics.fxCasualtyEvaluationMap.service.FxCasualtyEvaluationMapService;
import com.css.zfzx.sjcj.modules.statistics.fxEconomicLossEvaluationMap.repository.entity.FxEconomicLossEvaluationMapEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class FxCasualtyEvaluationMapServiceImpl implements FxCasualtyEvaluationMapService {
    @Autowired
    private FxCasualtyEvaluationMapRepository nativeRepository;

    @Override
    public List<FxCasualtyEvaluationMapEntity> findCreateTime(LocalDateTime createTime, int identify) {
        List<FxCasualtyEvaluationMapEntity> entities = nativeRepository.findCreateTime(createTime,identify);
        return entities;
    }

    @Override
    public List<FxCasualtyEvaluationMapEntity> findUpdateTime(LocalDateTime updateTime, int identify) {
        List<FxCasualtyEvaluationMapEntity> entities = nativeRepository.findUpdateTime(updateTime,identify);
        return entities;
    }
    @Override
    public List<DivisionVo> count(int identify1, int identify) {
        return nativeRepository.count(identify1,identify);
    }

}
